<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="wrap" onclick="fn()">
			dhsakjdhaskjdhksj
		</div>
	</body>
	<script type="text/javascript">
		
		function fn(){
			console.log(this);
		}
		
		wrap.onclick=fn;
		
	</script>
</html>
